package com.xiaoke.utils;

import org.commonmark.node.Node;
import org.commonmark.parser.Parser;
import org.commonmark.renderer.text.TextContentRenderer;
public class MarkdownUtils {
    public static String conversionMarkdownToText(String s) {
        Parser parser = Parser.builder().build();
        Node document = parser.parse(s);
        TextContentRenderer renderer = TextContentRenderer.builder().build();
        return   renderer.render(document);
    }

}
